package ewms.service;

import ewms.bo.EwmsOutWarehouseAddBo;
import ewms.bo.EwmsOutWarehouseEditBo;
import ewms.bo.EwmsOutWarehouseQueryBo;
import ewms.domain.EwmsOutWarehouse;
import ewms.vo.EwmsOutWarehouseVo;
import ewms.common.core.page.IServicePlus;
import ewms.common.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 危废出库Service接口
 *
 * @author zhaoxiaochun
 * @date 2022-02-16
 */
public interface IEwmsOutWarehouseService extends IServicePlus<EwmsOutWarehouse> {
	/**
	 * 查询单个
	 *
	 * @return
	 */
	EwmsOutWarehouseVo queryById(Long outWarehouseId);

	/**
	 * 查询危废出库列表
	 *
	 * @param outWarehouseQueryBo
	 * @return
	 */
	TableDataInfo<EwmsOutWarehouseVo> selectPagePreOutWarehouseList(EwmsOutWarehouseQueryBo outWarehouseQueryBo);

	/**
	 * 查询危废出库列表
	 *
	 * @param outWarehouseQueryBo
	 * @return
	 */
	public List<EwmsOutWarehouseVo> selectPreOutWarehouseList(EwmsOutWarehouseQueryBo outWarehouseQueryBo);

	/**
	 * 查询危废出库列表
	 *
	 * @param outWarehouseQueryBo
	 * @return
	 */
	TableDataInfo<EwmsOutWarehouseVo> selectPageOutWarehouseList(EwmsOutWarehouseQueryBo outWarehouseQueryBo);

	/**
	 * 查询危废出库列表
	 *
	 * @param outWarehouseQueryBo
	 * @return
	 */
	public List<EwmsOutWarehouseVo> selectOutWarehouseList(EwmsOutWarehouseQueryBo outWarehouseQueryBo);

	/**
	 * 查询列表
	 */
	TableDataInfo<EwmsOutWarehouseVo> queryPageList(EwmsOutWarehouseQueryBo bo);

	/**
	 * 查询列表
	 */
	List<EwmsOutWarehouseVo> queryList(EwmsOutWarehouseQueryBo bo);

	/**
	 * 根据新增业务对象插入危废出库
	 *
	 * @param bo 危废出库新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(EwmsOutWarehouseAddBo bo);

	/**
	 * 根据编辑业务对象修改危废出库
	 *
	 * @param bo 危废出库编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(EwmsOutWarehouseEditBo bo);

	/**
	 * 校验并删除数据
	 *
	 * @param ids     主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
